<% if @account && @site.can_be_edited_by_user?(@account.login) %>
    <div id="site_edit">
    Edit: 
    <%= link_to 'Properties', :controller => 'site', :site_directory => @site.directory, :action => 'properties_edit' %> |
    <%= link_to 'Resources', :controller => 'resource', :action => 'resources_edit', :site_directory => @site.directory %> |
    <%= link_to 'Users', :controller => 'user', :site_directory => @site.directory, :action => 'users_edit' %> |
    <%= link_to 'Style', :controller => 'style', :site_directory => @site.directory, :action => 'style_select' %>
    </div>
<% end %>